package com.meida.module.bus.provider.handler;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.ExportInterceptor;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.module.bus.client.entity.BusMaterialPackage200;
import com.meida.module.bus.provider.service.BusMaterialPackage200Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("busMaterialPackage200ReportExportHandler")
public class BusMaterialPackage200ReportExportHandler implements ExportInterceptor<BusMaterialPackage200> {

    @Autowired
    BusMaterialPackage200Service busMaterialPackage200Service;

    @Override
    public ResultBody initData(Map params) {
        List<EntityMap> busMaterialPackage200List = busMaterialPackage200Service.selectPackage200RootDetails(params);
        return ResultBody.ok(busMaterialPackage200List);
    }
}

